The SimpleMenu Component > FSimpleMenu.addItemAt() |
FSimpleMenu.addItemAt()
Availability
Flash Player 6.
Usage
sm_instance.addItem (index,
label)
Parameters
index - An integer specifying an item on the
SimpleMenu.
label - A string representing the label for the
new item on the SimpleMenu.
Returns
Nothing.
Description
Adds either a button or a separator bar to the SimpleMenu component.
Example
The following code adds a "Contact" button at the front of the Simple Menu:
sm.addItem(0, "Contact");
See also
FSimpleMenu.addItem
FSimpleMenu.getItemAt
FSimpleMenu.removeItemAt
FSimpleMenu.setDataProvider